
import {
    RESEIVE_ADDRESS,
    RESEIVE_FOODSTYPES,
    RESEIVE_SHOPS,
    RESEIVE_INFO,
    RESEIVE_RATINGS,
    RESEIVE_GOODS
} from './mutation-types.js'

export default {
   [RESEIVE_ADDRESS](state,{address}){
       state.address = address
   },
    [RESEIVE_FOODSTYPES](state,{foodstypes}){
        state.foodstypes = foodstypes
    },
    [RESEIVE_SHOPS](state,{shops}){
        state.shops = shops
    },


    [RESEIVE_INFO](state,{info}){
        state.info = info
    },
    [RESEIVE_RATINGS](state,{ratings}){
        state.ratings = ratings
    },
    [RESEIVE_GOODS](state,{goods}){
        state.goods = goods
    }
}